.class public Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/b;
.super Ljava/lang/Object;
.source "LibModelFactory.java"


# direct methods
.method private static a(I)I
    .locals 1

    const/4 v0, 0x1

    if-eq p0, v0, :cond_0

    const/4 v0, 0x2

    if-eq p0, v0, :cond_0

    const/4 v0, 0x3

    if-eq p0, v0, :cond_0

    const/4 p0, 0x0

    return p0

    :cond_0
    return v0
.end method

.method public static a(Lcom/bytedance/sdk/openadsdk/core/d/k;)Les/jj0$b;
    .locals 5

    const/4 v0, 0x1

    if-nez p0, :cond_0

    const/4 v1, 0x1

    goto :goto_0

    .line 50
    :cond_0
    invoke-virtual {p0}, Lcom/bytedance/sdk/openadsdk/core/d/k;->x()I

    move-result v1

    :goto_0
    const/4 v2, 0x0

    if-nez p0, :cond_1

    const/4 v3, 0x0

    goto :goto_1

    .line 51
    :cond_1
    invoke-virtual {p0}, Lcom/bytedance/sdk/openadsdk/core/d/k;->y()I

    move-result v3

    :goto_1
    if-eqz p0, :cond_2

    .line 52
    invoke-virtual {p0}, Lcom/bytedance/sdk/openadsdk/core/d/k;->ab()Ljava/lang/String;

    move-result-object v4

    invoke-static {v4}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v4

    if-nez v4, :cond_2

    const/4 v3, 0x2

    .line 53
    :cond_2
    new-instance v4, Les/jj0$b;

    invoke-direct {v4}, Les/jj0$b;-><init>()V

    .line 54
    invoke-static {v1}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/b;->b(I)I

    move-result v1

    invoke-virtual {v4, v1}, Les/jj0$b;->a(I)Les/jj0$b;

    .line 55
    invoke-static {v3}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/b;->a(I)I

    move-result v1

    invoke-virtual {v4, v1}, Les/jj0$b;->b(I)Les/jj0$b;

    .line 56
    invoke-virtual {v4, v0}, Les/jj0$b;->a(Z)Les/jj0$b;

    if-eqz p0, :cond_3

    .line 57
    invoke-virtual {p0}, Lcom/bytedance/sdk/openadsdk/core/d/k;->w()Z

    move-result v1

    if-eqz v1, :cond_3

    goto :goto_2

    :cond_3
    const/4 v0, 0x0

    :goto_2
    invoke-virtual {v4, v0}, Les/jj0$b;->c(Z)Les/jj0$b;

    .line 58
    invoke-virtual {v4, v2}, Les/jj0$b;->b(Z)Les/jj0$b;

    .line 59
    invoke-virtual {v4, p0}, Les/jj0$b;->a(Ljava/lang/Object;)Les/jj0$b;

    return-object v4
.end method

.method public static a(Lcom/bytedance/sdk/openadsdk/core/d/k;Ljava/lang/String;)Les/kj0$b;
    .locals 1

    .line 60
    new-instance p0, Les/kj0$b;

    invoke-direct {p0}, Les/kj0$b;-><init>()V

    const/4 v0, 0x1

    .line 61
    invoke-virtual {p0, v0}, Les/kj0$b;->a(Z)Les/kj0$b;

    .line 62
    invoke-virtual {p0, v0}, Les/kj0$b;->c(Z)Les/kj0$b;

    .line 63
    invoke-virtual {p0, v0}, Les/kj0$b;->b(Z)Les/kj0$b;

    const/4 v0, 0x0

    .line 64
    invoke-virtual {p0, v0}, Les/kj0$b;->d(Z)Les/kj0$b;

    .line 65
    invoke-virtual {p0, p1}, Les/kj0$b;->d(Ljava/lang/String;)Les/kj0$b;

    const-string v0, "click_start"

    .line 66
    invoke-virtual {p0, v0}, Les/kj0$b;->k(Ljava/lang/String;)Les/kj0$b;

    .line 67
    invoke-virtual {p0, p1}, Les/kj0$b;->f(Ljava/lang/String;)Les/kj0$b;

    const-string v0, "click_continue"

    .line 68
    invoke-virtual {p0, v0}, Les/kj0$b;->m(Ljava/lang/String;)Les/kj0$b;

    .line 69
    invoke-virtual {p0, p1}, Les/kj0$b;->e(Ljava/lang/String;)Les/kj0$b;

    const-string v0, "click_pause"

    .line 70
    invoke-virtual {p0, v0}, Les/kj0$b;->l(Ljava/lang/String;)Les/kj0$b;

    const-string v0, "download_failed"

    .line 71
    invoke-virtual {p0, v0}, Les/kj0$b;->r(Ljava/lang/String;)Les/kj0$b;

    .line 72
    invoke-virtual {p0, p1}, Les/kj0$b;->j(Ljava/lang/String;)Les/kj0$b;

    .line 73
    invoke-virtual {p0, v0}, Les/kj0$b;->q(Ljava/lang/String;)Les/kj0$b;

    .line 74
    invoke-virtual {p0, p1}, Les/kj0$b;->g(Ljava/lang/String;)Les/kj0$b;

    const-string v0, "click_install"

    .line 75
    invoke-virtual {p0, v0}, Les/kj0$b;->n(Ljava/lang/String;)Les/kj0$b;

    .line 76
    invoke-virtual {p0, p1}, Les/kj0$b;->h(Ljava/lang/String;)Les/kj0$b;

    const-string v0, "click_open"

    .line 77
    invoke-virtual {p0, v0}, Les/kj0$b;->o(Ljava/lang/String;)Les/kj0$b;

    .line 78
    invoke-virtual {p0, p1}, Les/kj0$b;->i(Ljava/lang/String;)Les/kj0$b;

    const-string v0, "open_url_app"

    .line 79
    invoke-virtual {p0, v0}, Les/kj0$b;->p(Ljava/lang/String;)Les/kj0$b;

    .line 80
    invoke-virtual {p0, p1}, Les/kj0$b;->c(Ljava/lang/String;)Les/kj0$b;

    .line 81
    invoke-virtual {p0, p1}, Les/kj0$b;->a(Ljava/lang/String;)Les/kj0$b;

    .line 82
    invoke-virtual {p0, p1}, Les/kj0$b;->b(Ljava/lang/String;)Les/kj0$b;

    return-object p0
.end method

.method public static a(Ljava/lang/String;Lcom/bytedance/sdk/openadsdk/core/d/k;Lorg/json/JSONObject;)Les/lj0$b;
    .locals 4

    if-nez p1, :cond_0

    .line 19
    new-instance p0, Les/lj0$b;

    invoke-direct {p0}, Les/lj0$b;-><init>()V

    return-object p0

    .line 20
    :cond_0
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 21
    :try_start_0
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->a()Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object v1

    invoke-virtual {v1, p0}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->a(Ljava/lang/String;)Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object p0

    invoke-virtual {p0, p2}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->b(Lorg/json/JSONObject;)Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object p0

    invoke-virtual {p0, p1}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->a(Lcom/bytedance/sdk/openadsdk/core/d/k;)Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object p0

    const-string p2, "open_ad_sdk_download_extra"

    .line 22
    invoke-virtual {p0}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->b()Lorg/json/JSONObject;

    move-result-object p0

    invoke-virtual {v0, p2, p0}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    .line 23
    :goto_0
    new-instance p0, Les/lj0$b;

    invoke-direct {p0}, Les/lj0$b;-><init>()V

    .line 24
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->O()Ljava/lang/String;

    move-result-object p2

    invoke-static {p2}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object p2

    invoke-virtual {p2}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-virtual {p0, v1, v2}, Les/lj0$b;->a(J)Les/lj0$b;

    .line 25
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->E()Lcom/bytedance/sdk/openadsdk/core/d/j;

    move-result-object p2

    if-nez p2, :cond_1

    const/4 p2, 0x0

    goto :goto_1

    :cond_1
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->E()Lcom/bytedance/sdk/openadsdk/core/d/j;

    move-result-object p2

    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/j;->a()Ljava/lang/String;

    move-result-object p2

    :goto_1
    invoke-virtual {p0, p2}, Les/lj0$b;->c(Ljava/lang/String;)Les/lj0$b;

    .line 26
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/core/h;->c()Lcom/bytedance/sdk/openadsdk/core/h;

    move-result-object p2

    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/h;->k()Z

    move-result p2

    invoke-virtual {p0, p2}, Les/lj0$b;->b(Z)Les/lj0$b;

    .line 27
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/core/h;->c()Lcom/bytedance/sdk/openadsdk/core/h;

    move-result-object p2

    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/h;->k()Z

    move-result p2

    const/4 v1, 0x1

    xor-int/2addr p2, v1

    invoke-virtual {p0, p2}, Les/lj0$b;->d(Z)Les/lj0$b;

    .line 28
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->R()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p2}, Les/lj0$b;->a(Ljava/lang/String;)Les/lj0$b;

    .line 29
    invoke-virtual {p0, v0}, Les/lj0$b;->a(Lorg/json/JSONObject;)Les/lj0$b;

    sget-object p2, Lcom/bytedance/sdk/openadsdk/downloadnew/a/d;->a:Ljava/lang/String;

    .line 30
    invoke-virtual {p0, p2}, Les/lj0$b;->f(Ljava/lang/String;)Les/lj0$b;

    .line 31
    invoke-virtual {p0, v1}, Les/lj0$b;->a(Z)Les/lj0$b;

    .line 32
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->P()Lcom/bytedance/sdk/openadsdk/core/d/b;

    move-result-object p2

    if-eqz p2, :cond_2

    .line 33
    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/b;->b()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Les/lj0$b;->d(Ljava/lang/String;)Les/lj0$b;

    .line 34
    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/b;->c()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p0, v0}, Les/lj0$b;->e(Ljava/lang/String;)Les/lj0$b;

    .line 35
    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/b;->d()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p0, p2}, Les/lj0$b;->b(Ljava/lang/String;)Les/lj0$b;

    .line 36
    :cond_2
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/multipro/b;->b()Z

    move-result p2

    if-eqz p2, :cond_3

    .line 37
    invoke-virtual {p0, v1}, Les/lj0$b;->c(Z)Les/lj0$b;

    .line 38
    :cond_3
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->Q()Lcom/bytedance/sdk/openadsdk/core/d/f;

    move-result-object p2

    if-eqz p2, :cond_6

    .line 39
    new-instance p2, Les/dj0;

    invoke-direct {p2}, Les/dj0;-><init>()V

    .line 40
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->O()Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v2

    invoke-virtual {p2, v2, v3}, Les/dj0;->a(J)V

    .line 41
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->Q()Lcom/bytedance/sdk/openadsdk/core/d/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/d/f;->a()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Les/dj0;->b(Ljava/lang/String;)V

    .line 42
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->L()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p2, v0}, Les/dj0;->c(Ljava/lang/String;)V

    .line 43
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->Q()Lcom/bytedance/sdk/openadsdk/core/d/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/d/f;->c()I

    move-result v0

    const/4 v2, 0x2

    if-ne v0, v2, :cond_4

    .line 44
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->S()I

    move-result v0

    const/4 v2, 0x5

    if-eq v0, v2, :cond_4

    .line 45
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->S()I

    move-result v0

    const/16 v2, 0xf

    if-eq v0, v2, :cond_4

    goto :goto_2

    .line 46
    :cond_4
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->Q()Lcom/bytedance/sdk/openadsdk/core/d/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/bytedance/sdk/openadsdk/core/d/f;->c()I

    move-result v0

    if-ne v0, v1, :cond_5

    .line 47
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->Q()Lcom/bytedance/sdk/openadsdk/core/d/f;

    move-result-object p1

    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/f;->b()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Les/dj0;->a(Ljava/lang/String;)V

    goto :goto_2

    .line 48
    :cond_5
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/core/d/k;->G()Ljava/lang/String;

    move-result-object p1

    invoke-virtual {p2, p1}, Les/dj0;->a(Ljava/lang/String;)V

    .line 49
    :goto_2
    invoke-virtual {p0, p2}, Les/lj0$b;->a(Les/dj0;)Les/lj0$b;

    :cond_6
    return-object p0
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;Lcom/bytedance/sdk/openadsdk/core/d/k;Lorg/json/JSONObject;)Les/lj0$b;
    .locals 3

    if-nez p2, :cond_0

    .line 1
    new-instance p0, Les/lj0$b;

    invoke-direct {p0}, Les/lj0$b;-><init>()V

    return-object p0

    .line 2
    :cond_0
    invoke-static {p0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    new-instance p0, Les/lj0$b;

    invoke-direct {p0}, Les/lj0$b;-><init>()V

    return-object p0

    .line 4
    :cond_1
    new-instance v0, Lorg/json/JSONObject;

    invoke-direct {v0}, Lorg/json/JSONObject;-><init>()V

    .line 5
    :try_start_0
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->a()Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object v1

    invoke-virtual {v1, p1}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->a(Ljava/lang/String;)Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object p1

    invoke-virtual {p1, p3}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->b(Lorg/json/JSONObject;)Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object p1

    invoke-virtual {p1, p2}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->a(Lcom/bytedance/sdk/openadsdk/core/d/k;)Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;

    move-result-object p1

    const-string p3, "open_ad_sdk_download_extra"

    .line 6
    invoke-virtual {p1}, Lcom/bytedance/sdk/openadsdk/downloadnew/a/b/a;->b()Lorg/json/JSONObject;

    move-result-object p1

    invoke-virtual {v0, p3, p1}, Lorg/json/JSONObject;->put(Ljava/lang/String;Ljava/lang/Object;)Lorg/json/JSONObject;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    .line 7
    :goto_0
    new-instance p1, Les/lj0$b;

    invoke-direct {p1}, Les/lj0$b;-><init>()V

    .line 8
    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/k;->O()Ljava/lang/String;

    move-result-object p3

    invoke-static {p3}, Ljava/lang/Long;->valueOf(Ljava/lang/String;)Ljava/lang/Long;

    move-result-object p3

    invoke-virtual {p3}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-virtual {p1, v1, v2}, Les/lj0$b;->a(J)Les/lj0$b;

    .line 9
    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/k;->E()Lcom/bytedance/sdk/openadsdk/core/d/j;

    move-result-object p3

    if-nez p3, :cond_2

    const/4 p3, 0x0

    goto :goto_1

    :cond_2
    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/k;->E()Lcom/bytedance/sdk/openadsdk/core/d/j;

    move-result-object p3

    invoke-virtual {p3}, Lcom/bytedance/sdk/openadsdk/core/d/j;->a()Ljava/lang/String;

    move-result-object p3

    :goto_1
    invoke-virtual {p1, p3}, Les/lj0$b;->c(Ljava/lang/String;)Les/lj0$b;

    .line 10
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/core/h;->c()Lcom/bytedance/sdk/openadsdk/core/h;

    move-result-object p3

    invoke-virtual {p3}, Lcom/bytedance/sdk/openadsdk/core/h;->k()Z

    move-result p3

    invoke-virtual {p1, p3}, Les/lj0$b;->b(Z)Les/lj0$b;

    .line 11
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/core/h;->c()Lcom/bytedance/sdk/openadsdk/core/h;

    move-result-object p3

    invoke-virtual {p3}, Lcom/bytedance/sdk/openadsdk/core/h;->k()Z

    move-result p3

    const/4 v1, 0x1

    xor-int/2addr p3, v1

    invoke-virtual {p1, p3}, Les/lj0$b;->d(Z)Les/lj0$b;

    .line 12
    invoke-virtual {p2}, Lcom/bytedance/sdk/openadsdk/core/d/k;->R()Ljava/lang/String;

    move-result-object p2

    invoke-virtual {p1, p2}, Les/lj0$b;->a(Ljava/lang/String;)Les/lj0$b;

    .line 13
    invoke-virtual {p1, v0}, Les/lj0$b;->a(Lorg/json/JSONObject;)Les/lj0$b;

    sget-object p2, Lcom/bytedance/sdk/openadsdk/downloadnew/a/d;->a:Ljava/lang/String;

    .line 14
    invoke-virtual {p1, p2}, Les/lj0$b;->f(Ljava/lang/String;)Les/lj0$b;

    .line 15
    invoke-virtual {p1, p0}, Les/lj0$b;->d(Ljava/lang/String;)Les/lj0$b;

    .line 16
    invoke-virtual {p1, v1}, Les/lj0$b;->a(Z)Les/lj0$b;

    .line 17
    invoke-static {}, Lcom/bytedance/sdk/openadsdk/multipro/b;->b()Z

    move-result p0

    if-eqz p0, :cond_3

    .line 18
    invoke-virtual {p1, v1}, Les/lj0$b;->c(Z)Les/lj0$b;

    :cond_3
    return-object p1
.end method

.method private static b(I)I
    .locals 1

    if-eqz p0, :cond_1

    const/4 v0, 0x2

    if-eq p0, v0, :cond_0

    const/4 p0, 0x1

    return p0

    :cond_0
    return v0

    :cond_1
    const/4 p0, 0x0

    return p0
.end method
